import service from "@/utils/axios";

export default{
    login(userInfo){
        return service.get('/login',{params:userInfo});
        //return service.post('/loginSave',userInfo);
    },
    register(userInfo){
        return service.post('/regist',userInfo);
    },
    updatepwd(userInfo){
        return service.post('/updatepwd',userInfo);
    },
    verify(token){
        return service.get('/verify',{params:{token}});
    },
    enter_home(token){//初始化个人信息
        return service.get('/inithome',{params:{token}});
    },

    add_user(newInfo){
        return service.post('/addinfo',newInfo);
    },
    get_user(){//初始化作者列表信息（用户共享？）
        return service.get('/getinfo');
    },
    delete_user(id){
        return service.get('/deleteinfo',{params:{id}});
    },
    update_user(newInfo){
        return service.post('/updateinfo',newInfo);
    },

}